package com.tydic.order.domain.bo;

import com.tydic.common.core.validate.AddGroup;
import com.tydic.common.core.validate.EditGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;

@Data
public class OrderReceiptBo implements Serializable {
    @Serial
    private static final long serialVersionUID = 6292638513497020665L;
    /**
     * 订单ID
     */
    @NotBlank(message = "请传入订单ID", groups = {AddGroup.class, EditGroup.class})
    private String id;
    /**
     * 收货人
     */
    @NotBlank(message = "请输入收货人", groups = {AddGroup.class, EditGroup.class})
    private String receiverName;
    /**
     * 联系电话
     */
    @NotBlank(message = "请输入联系电话", groups = {AddGroup.class, EditGroup.class})
    private String receiverPhone;
    /**
     * 收货地址
     */
    @NotBlank(message = "请输入收货地址", groups = {AddGroup.class, EditGroup.class})
    private String receiverAddress;
    /**
     * 收货时间
     */
    @NotBlank(message = "请输入收货时间", groups = {AddGroup.class, EditGroup.class})
    private String receiverTime;
    /**
     * 车辆信息
     */
    @NotEmpty(message = "请输入车辆信息", groups = {AddGroup.class, EditGroup.class})
    private ArrayList<String> carNumbers;
}
